package com.example.quiz.service;

import com.example.quiz.entity.QuestionWrapper;
import com.example.quiz.entity.Response;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface QuizService {
    public ResponseEntity<Integer> createQuiz(@RequestParam String category, @RequestParam int numQuestions, @RequestParam String title);

    public ResponseEntity<List<QuestionWrapper>> getQuizQuestions(Integer id);

    Integer calculateScore(Integer id, List<Response> responses);
}
